package com.cn.redis.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component("com.cn.redis.properties.rp")
@ConfigurationProperties(
        prefix = "idgenerator.redis",
        ignoreUnknownFields = false
)
public class RedisProperties {
    private String password = null;
    private String clusterNodes = "";

    public RedisProperties() {
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getClusterNodes() {
        return this.clusterNodes;
    }

    public void setClusterNodes(String clusterNodes) {
        this.clusterNodes = clusterNodes;
    }
}
